package com.fjb.pojo.order;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 订单详情
 * </p>
 *
 * @author hemiao
 * @since 2019-12-22
 */
public class OrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 主账号id
     */
    private Integer mainUserId;

    /**
     * 订单id
     */
    private Integer orderInfoId;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 商户id  卖家id
     */
    private Integer merchantId;

    /**
     * 购买数量
     */
    private Integer purchaseCount;

    /**
     * 购买时的价格
     */
    private BigDecimal purchasePrice;

    private Integer createUserId;

    private LocalDateTime createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }
    public Integer getOrderInfoId() {
        return orderInfoId;
    }

    public void setOrderInfoId(Integer orderInfoId) {
        this.orderInfoId = orderInfoId;
    }
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }
    public Integer getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }
    public Integer getPurchaseCount() {
        return purchaseCount;
    }

    public void setPurchaseCount(Integer purchaseCount) {
        this.purchaseCount = purchaseCount;
    }
    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "OrderDetails{" +
        "id=" + id +
        ", mainUserId=" + mainUserId +
        ", orderInfoId=" + orderInfoId +
        ", productId=" + productId +
        ", merchantId=" + merchantId +
        ", purchaseCount=" + purchaseCount +
        ", purchasePrice=" + purchasePrice +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        "}";
    }
}
